package com.mobile.renter.controls {
   import com.mobile.renter.components.AlertDialog;
   
   import flash.display.DisplayObjectContainer;
   
   import mx.core.FlexGlobals;
   
   import spark.events.PopUpEvent;

   public class ConfirmHelper {
      
      
      public function ConfirmHelper() {
      }
      
      public static function showWarningDialog(title:String, message:String) : void {
         
      }
      
      public static function showWarningConfirmDialog(title:String, message:String, closeHandler:Function = null) : void {
      
      }
      
      public static function showInformationDialog( title:String, message:String, closeHandler:Function = null) : void {
         var a:AlertDialog = new AlertDialog();
         a.addEventListener(PopUpEvent.CLOSE, onAlertClose, false, 0, true);
         a.percentWidth = 80;
         a.message = message;
         a.x = 150;
         a.y = 200;
         a.open(FlexGlobals.topLevelApplication as DisplayObjectContainer, true);
         
         function onAlertClose(e:PopUpEvent):void {
            a = null;
         }
      }
      
      public static function showErrorConfirmDialog(title:String, message:String, closeHandler:Function):void {
      
      }
      
      public static function showConfirmDialog(title:String, message:String, closeHandler:Function):void {
      
      }
   }
}